Monthly Calendar
This script creates a calendar for the current month,
highlighting the current day.
Discussion
This script uses the the Date object to determine
the current date, and creates a table presenting the
calendar for the current month. The algorithm for generating the calendar is
probably more interesting than the Date object itself,
as it involves determining whether or not the current year is a leap year, and
padding the calendar properly to account for the weekday on which the first day
of the month occurs.
Copyright ©2000 by Charles River Media, All Rights Reserved